﻿@model List<Core_Goods>
@{
    Layout = null;
    string banners = ViewBag.AdIndexBanner;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta charset="utf-8">
    <title>花溆园艺植物商城</title>
    <link rel="stylesheet" href="\static\themes\xin\statics\css\ectouch.css">
</head>
<body style="max-width:640px;">
    <div id="loading"><img src="\static\themes\xin\statics\img\loading.gif"></div>
    <div class="con m-b7 new-maxbox">
        <header class="header-max-box">
            <!--
                        <div class="ect-header-banner dis-box">
                    <div class="box-flex">
                        <div class="ect-header-text fl">
                            <h4>欢迎进入<span class="color-red">花溆园艺微商城</span></h4>
                            <p>关注公众号,享专属服务</p>
                        </div>
                    </div>
                    <a class="btn-submit1 j-ewm-box" href="javascript:;">立即关注</a>
                </div>
                <div class="index-weixin-box">
                    <div><img src="/static/themes/xin/statics/img/ewm.png"></div>
                    <p class="text-c">长按二维码关注公众微信</p>
                </div>
                -->
            <div class="index-bg-box"></div>
        </header>
        <div class="index-banner swiper-container box position-rel banner-first">
            <div class="index-nav-box">
                <ul class="dis-box">
                    <li class="index-left-box"><a href="/main/category"><i class="iconfont icon-caidan color-whie"></i></a></li>
                    <li class="box-flex n-input-index-box">
                        <div class="index-search-box j-search-input" id="j-input-focus"><i class="iconfont icon-sousuo"></i>请输入您搜索的关键词!</div>
                    </li>
                    <li class="index-right-box"><a href="/helper.html"><i class="iconfont icon-xiaoxi1 color-whie n-xiaoxi-size"></i></a></li>
                </ul>
            </div>
            <div class="swiper-wrapper">
                @foreach (var s in banners.Split('|'))
                {

                    <div class="swiper-slide">
                        <a href='@s.Split('~')[1]'>
                            <img src='@s.Split('~')[0]' border='0'>
                        </a>
                    </div>
                }
            </div>

            <div class="swiper-pagination banner-first-pagination"></div>

            <div class="linear"></div>
        </div>

        <nav class="bg-white ptb-1 index-nav">
            <ul class="box ul-4 text-c bg-white">
                <li class="fl">
                    <a href="/plants/new"><img src="\static\themes\xin\images\nav\nav_8.png"></a>
                    <a class="index-menu-text" href="/plants/new">新品上架</a>
                </li>
                <li class="fl">
                    <a href="/plants/hot"><img src="\static\themes\xin\images\nav\nav_1.png"></a>
                    <a class="index-menu-text" href="/plants/hot">掌柜推荐</a>
                </li>
                <li class="fl">
                    <a href="/plants/cheap"><img src="\static\themes\xin\images\nav\nav_3.png"></a>
                    <a class="index-menu-text" href="/plants/cheap">特价商品</a>
                </li>
                <li class="fl">
                    <a href="/main/category"><img src="\static\themes\xin\images\nav\nav_6.png"></a>
                    <a class="index-menu-text" href="/main/category">整店搜索</a>
                </li>
            </ul>
        </nav>


        <div>
            @*<a href="http://mp.weixin.qq.com/s/eJ658I7Eqty-upkmrrAFVA"><img src="\static\themes\xin\images\2.jpg" width="100%"></a>*@
            <p class="index-title"><i class="iconfont icon-cainixihuan is-cainixihuan"></i>新品上市</p>
            @*<img src="\static\themes\xin\images\3.jpg" width="100%">*@
        </div>
        <section class="product-list j-product-list n-index-box ">
            <ul class="index-more-list">
                @foreach (var item in Model.Where(o => o.G_Top == 1))
                {
                    <div class="single_item">
                        <li class="fl">
                            <div class="product-div">
                                <a href="/plants/show/@item.G_Id"><img src="\static\themes\xin\statics\img\loading_shop.png" data-echo="@item.G_Img" alt="@item.G_Name"></a>
                                <a href="/plants/show/@item.G_Id"><h4>@item.G_Name</h4></a>
                                <p><span> ￥@{@item.G_PriceDeposit.ToString("N")}元</span></p>
                            </div>
                        </li>
                    </div>
    }

            </ul>
        </section>


        <div>
            @*<img src="\static\themes\xin\images\4.jpg" width="100%">*@
            <p class="index-title"><i class="iconfont icon-cainixihuan is-cainixihuan"></i>多肉植物</p>
        </div>
        <section class="product-list j-product-list n-index-box ">
            <ul class="index-more-list">
                @foreach (var item in Model.Where(o => o.G_TypeId == (int)CategoryEnum.多肉植物))
                {
                    <div class="single_item">
                        <li class="fl">
                            <div class="product-div">
                                <a href="/plants/show/@item.G_Id"><img src="\static\themes\xin\statics\img\loading_shop.png" data-echo="@item.G_Img" alt="@item.G_Name"></a>
                                <a href="/plants/show/@item.G_Id"><h4>@item.G_Name</h4></a>
                                <p><span> ￥@{@item.G_PriceDeposit.ToString("N")}元</span></p>
                                    </div>
                                </li>
                            </div>
    }
            </ul>
        </section>


        <div>
            @*<img src="\static\themes\xin\images\5.jpg" width="100%">*@
            <p class="index-title"><i class="iconfont icon-cainixihuan is-cainixihuan"></i>室内绿植</p>
        </div>
        <section class="product-list j-product-list n-index-box ">
            <ul class="index-more-list">
                @foreach (var item in Model.Where(o => o.G_TypeId == (int)CategoryEnum.室内绿植))
                {
                    <div class="single_item">
                        <li class="fl">
                            <div class="product-div">
                                <a href="/plants/show/@item.G_Id"><img src="\static\themes\xin\statics\img\loading_shop.png" data-echo="@item.G_Img" alt="@item.G_Name"></a>
                                <a href="/plants/show/@item.G_Id"><h4>@item.G_Name</h4></a>
                                <p><span> ￥@{@item.G_PriceDeposit.ToString("N")}元</span></p>
                            </div>
                        </li>
                    </div>
    }
            </ul>
        </section>

        <div>
            @*<img src="\static\themes\xin\images\9.jpg" width="100%">*@
            <p class="index-title"><i class="iconfont icon-cainixihuan is-cainixihuan"></i>室内花卉</p>
        </div>
        <section class="product-list j-product-list n-index-box ">
            <ul class="index-more-list">
                @foreach (var item in Model.Where(o => o.G_TypeId == (int)CategoryEnum.室内花卉))
                {
                    <div class="single_item">
                        <li class="fl">
                            <div class="product-div">
                                <a href="/plants/show/@item.G_Id"><img src="\static\themes\xin\statics\img\loading_shop.png" data-echo="@item.G_Img" alt="@item.G_Name"></a>
                                <a href="/plants/show/@item.G_Id"><h4>@item.G_Name</h4></a>
                                <p><span> ￥@{@item.G_PriceDeposit.ToString("N")}元</span></p>
                            </div>
                        </li>
                    </div>
    }
            </ul>
        </section>
        <div>
            @*<img src="\static\themes\xin\images\10.jpg" width="100%">*@
            <p class="index-title"><i class="iconfont icon-cainixihuan is-cainixihuan"></i>微景观</p>
        </div>
        <section class="product-list j-product-list n-index-box ">
            <ul class="index-more-list">
                @foreach (var item in Model.Where(o => o.G_TypeId == (int)CategoryEnum.微景观))
                {
                    <div class="single_item">
                        <li class="fl">
                            <div class="product-div">
                                <a href="/plants/show/@item.G_Id"><img src="\static\themes\xin\statics\img\loading_shop.png" data-echo="@item.G_Img" alt="@item.G_Name"></a>
                                <a href="/plants/show/@item.G_Id"><h4>@item.G_Name</h4></a>
                                <p><span> ￥@{@item.G_PriceDeposit.ToString("N")}元</span></p>
                                    </div>
                                </li>
                            </div>
    }
            </ul>
        </section>
        <div class="n-footer-box">
            <ul class="n-footer-minbox">

                <li>
                    <p class="footer-tit">© 2005-2016 花溆园艺商城 版权所有，并保留所有权利</p>
                </li>
            </ul>
        </div>
    </div>
    <div class="filter-top" id="scrollUp">
        <i class="iconfont icon-dingbu"></i>
    </div>
    <footer class="new-index-footer ">
        <ul class="dis-box new-footer-box">
            <li class="box-flex">
                <a href="/" class="nav-cont active"><i class="nav-box"><img src="\static\themes\xin\statics\img\home-a.png"></i><span>首页</span></a>
            </li>
            <li class="box-flex">
                <a href="/main/category" class="nav-cont"><i class="nav-box"><img src="\static\themes\xin\statics\img\cate.png"></i><span>分类</span></a>
            </li>
            <li class="box-flex"><a href="/plants/new" class="nav-cont"><i class="nav-box"><img src="\static\themes\xin\statics\img\new.png"></i><span>新品</span></a></li>
            <li class="box-flex"><a href="/plants/hot" class="nav-cont"><i class="nav-box"><img src="\static\themes\xin\statics\img\hot.png"></i><span>热卖</span></a></li>
        </ul>
    </footer>

    @{
        Html.RenderAction("PlantsFilter", "Main");
    }
    <script type="text/javascript" src="\static\themes\xin\statics\js\jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="\static\themes\xin\statics\js\swiper-3.2.5.min.js"></script>
    <script type="text/javascript" src="\static\themes\xin\statics\js\ectouch.js"></script>


    <script type="text/javascript" src="\static\themes\xin\statics\js\echo.min.js"></script>

    <script type="text/javascript ">
        echo.init();
        $(function($) {
            var mySwiper = new Swiper('.banner-first', {
                pagination: '.banner-first-pagination',
                loop: false,
                grabCursor: true,
                paginationClickable: true,
                autoplayDisableOnInteraction: false,
                autoplay: 3000
            });
        });
        /*立即关注*/
        if ($(".index-weixin-box").hasClass("index-weixin-box")) {
            $(".index-banner").css({
                "marginTop": "0rem",

            })
        } else {
            $(".index-banner").css({
                "marginTop": "0rem",

            })
        }

    </script>
</body>
</html>